package com.okyai.kt.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.BaseEntity;

/**
 * 人口学对象 kt_demography
 * 
 * @author okyai
 * @date 2021-03-21
 */
public class Demography extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 人口学主键 */
    private Long demographyId;

    /** 人口学名称 */
    @Excel(name = "人口学名称")
    private String demographyName;

    /** 患者性别 */
    @Excel(name = "患者性别")
    private String sex;

    /** 出生日期 */
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 名族 */
    @Excel(name = "名族")
    private String nation;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String identityCard;

    /** 身份证照片 */
    @Excel(name = "身份证照片")
    private String identityCardImg;

    /** 户籍城市 */
    @Excel(name = "户籍城市")
    private String areaCode;

    /** 户籍地址 */
    @Excel(name = "户籍地址")
    private String address;

    /** 户籍邮编 */
    @Excel(name = "户籍邮编")
    private String postcode;

    /** 租户主键 */
    @Excel(name = "租户主键")
    private Long deptId;

    /** 录入人主键 */
    @Excel(name = "录入人主键")
    private Long userId;

    public void setDemographyId(Long demographyId) 
    {
        this.demographyId = demographyId;
    }

    public Long getDemographyId() 
    {
        return demographyId;
    }
    public void setDemographyName(String demographyName) 
    {
        this.demographyName = demographyName;
    }

    public String getDemographyName() 
    {
        return demographyName;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setNation(String nation) 
    {
        this.nation = nation;
    }

    public String getNation() 
    {
        return nation;
    }
    public void setIdentityCard(String identityCard) 
    {
        this.identityCard = identityCard;
    }

    public String getIdentityCard() 
    {
        return identityCard;
    }
    public void setIdentityCardImg(String identityCardImg) 
    {
        this.identityCardImg = identityCardImg;
    }

    public String getIdentityCardImg() 
    {
        return identityCardImg;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPostcode(String postcode) 
    {
        this.postcode = postcode;
    }

    public String getPostcode() 
    {
        return postcode;
    }
   
    
    public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("demographyId", getDemographyId())
            .append("demographyName", getDemographyName())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("nation", getNation())
            .append("identityCard", getIdentityCard())
            .append("identityCardImg", getIdentityCardImg())
            .append("areaCode", getAreaCode())
            .append("address", getAddress())
            .append("postcode", getPostcode())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}